package com.yue.ssa.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yue.ssa.bean.File;
import com.yue.ssa.bean.RespBean;
import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @author zhengyl
 * @description
 * @date 2020-04-08 9:34
 */
public interface FileService extends IService<File> {
    RespBean upload(MultipartFile multipartFile);

    RespBean get(String id);

    void download(HttpServletResponse response, String id);

    RespBean getFilesByRelatedId(String relatedId);

    RespBean delete(String[] ids);

    void batchDownload(HttpServletResponse response, String[] ids);

    List getInputStream(String[] paths);
}